<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>添加 - 时间胶囊 - TimePill.net</title>
    <link rel="stylesheet" type="text/css" href="../styles/style.css">
</head>

<body>
    <div class="header">
        <div class="container">
            <a class="logo" href="index.html">时间胶囊</a>
            <ul class="nav">
                <li><a href="index.html">首页</a></li>
                <li class="active"><a href="put.html">添加</a></li>
                <li><a href="open.html">打开</a></li>
            </ul>
        </div>
    </div>
    <div class="container">
        <h1 class="page-header">添加胶囊</h1>
        <div class="main">
            <form method="post">
                <label>你的名字</label>
                <span class="err"></span>
                <input name="name" value="" type="text">
                <label>你的邮箱</label>
                <span class="err"></span>
                <input name="email" value="" type="text">
                <label>打开时间</label>
                <input name="time" value="" type="text">
                <span class="tips">打开时间之前，胶囊内容是看不到的。</span>
                <label>胶囊内容</label>
                <span class="err"></span>
                <textarea name="content" value="" style="margin-bottom: 0" rows="8" cols="50"></textarea>
                <span class="tips">胶囊内容不能超过5000字。</span>
                <label style="margin-top: 10px;">未到期提示信息</label>
                <textarea name="tips" value="" style="margin-bottom: 0" rows="3" cols="50"></textarea>
                <span class="tips">在 打开时间 之前打开胶囊，会看到提示信息。</span>
                <p><input type="button" id="sub" value="添加胶囊"></p>
            </form>
        </div>
    </div>
</body>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.1/moment.min.js"></script>
<script src="../js/put.js"></script>
<script>
    document.getElementsByTagName('input')[2].value=moment().format('YYYY-MM-DD HH:mm:ss')
</script>
</html>